<template>
  <el-form-item :rules="item.rule" :label="item.label" :prop="item.prop">
    <el-slider
      v-model="formData[item.prop]"
      @change="item.change && item.change(formData[item.prop])"
      :disabled="item.disabled"
      :max="item.max"
      :min="item.min"
      :range="item.range !== undefined"
    >
    </el-slider>
  </el-form-item>
</template>

<script>
export default {
  name: "sliderCom",
  props: {
    item: {
      type: Object,
      default: () => {
        return {};
      }
    },
    formData: {
      type: Object,
      default: () => {
        return {};
      }
    }
  }
};
</script>

<style scoped lang="scss"></style>
